﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ZhimeiSoft.CharmManager.DOL
{
    public class DBEntityCustomerConsumptionSurvey : DBEntityBase
    {
        public override string GetTableName()
        {
            return "CUSTOMERCONSUMPTIONSURVEY";
        }

        public DBEntityCustomerConsumptionSurvey()
            : base()
        {
        }
        public DBEntityCustomerConsumptionSurvey(DataRow drRow)
        {
            this.CUSTOMERCOMSUMPTIONSURVEYID = Convert.ToInt32(drRow[DBEntityCustomerConsumptionSurvey.FieldName.CUSTOMERCOMSUMPTIONSURVEYID]);
	        this.CUSTOMERID = Convert.ToInt32(drRow[DBEntityCustomerConsumptionSurvey.FieldName.CUSTOMERID]);
	        this.EMPLOYEEID = Convert.ToInt32(drRow[DBEntityCustomerConsumptionSurvey.FieldName.EMPLOYEEID]);
	        this.SERVICEITEMID = Convert.ToInt32(drRow[DBEntityCustomerConsumptionSurvey.FieldName.SERVICEITEMID]);
	        this.CSURVEYRESULT = drRow[DBEntityCustomerConsumptionSurvey.FieldName.CSURVEYRESULT].ToString();
            this.CSURVEYDATE = Convert.ToDateTime(drRow[DBEntityCustomerConsumptionSurvey.FieldName.CSURVEYDATE]);
        }
        /// <summary>
        /// 会员消费调查ID
        /// </summary>
        public int CUSTOMERCOMSUMPTIONSURVEYID { get; set; }
        /// <summary>
        /// 会员ID，同时也是被调查人
        /// </summary>
        public int CUSTOMERID { get; set; }
        /// <summary>
        /// 调查人
        /// </summary>
        public int EMPLOYEEID { get; set; }
        /// <summary>
        /// 服务项目ID
        /// </summary>
        public int SERVICEITEMID { get; set; }
        /// <summary>
        /// 消费调查结果
        /// </summary>
        public string CSURVEYRESULT { get; set; }
        /// <summary>
        /// 调查时间
        /// </summary>
        public DateTime CSURVEYDATE { get; set; }
        /// <summary>
        /// 字段名称
        /// </summary>
        public static class FieldName
        {
            /// <summary>
            /// 会员消费调查ID
            /// </summary>
            public const string CUSTOMERCOMSUMPTIONSURVEYID = "CUSTOMERCOMSUMPTIONSURVEYID";
            /// <summary>
            /// 会员ID，同时也是被调查人
            /// </summary>
	        public const string CUSTOMERID = "CUSTOMERID";
            /// <summary>
            /// 调查人
            /// </summary>
	        public const string EMPLOYEEID = "EMPLOYEEID";
            /// <summary>
            /// 服务项目ID
            /// </summary>
	        public const string SERVICEITEMID = "SERVICEITEMID";
            /// <summary>
            /// 消费调查结果
            /// </summary>
	        public const string CSURVEYRESULT = "CSURVEYRESULT";
            /// <summary>
            /// 调查时间
            /// </summary>
            public const string CSURVEYDATE = "CSURVEYDATE";
        }
    }
}
